import QtQuick
import QtQuick.Particles

Rectangle {
    id: root
    width: 400
    height: 400
    color: "black"

    ParticleSystem {
        id: particleSystem
        anchors.fill: parent

        ItemParticle {
            delegate: Rectangle {
                width: 16; height: 16
                radius: 8
                color: Qt.rgba(Math.random(), Math.random(), Math.random(), 1)
            }
        }

        Emitter {
            anchors.centerIn: parent
            width: 1
            height: 1
            emitRate: 60
            lifeSpan: 2000
            size: 16
            velocity: AngleDirection {
                angle: 0
                angleVariation: 360
                magnitude: 100
                magnitudeVariation: 40
            }
        }
    }
} 